﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace AGMLite.UserControl
{
    /// <summary>
    /// Interaction logic for FieldOptionalSelectionUserControl.xaml
    /// </summary>
    public partial class FieldOptionalSelectionUserControl : System.Windows.Controls.UserControl
    {
        public string SelectedValue { get; set; }

        public FieldOptionalSelectionUserControl()
        {
            InitializeComponent();
        }

        private void btnOK_Click(object sender, RoutedEventArgs e)
        {
            SelectedValue = cmbFieldOptionals.SelectedValue as string;
            (this.Parent as Window).Close();
        }
    }
}
